package designMode.decorator.cbf4life;

/**
 * Created by jingqing.zhou on 2015/4/30.
 */
public abstract  class DecoratorReport extends  SchoolReport {
    //首先我要知道是那个成绩单
    private SchoolReport schoolReport ;

    //构造函数，传递成绩单过来
    public DecoratorReport(SchoolReport sr){
        this.schoolReport =  sr ;
    }

    //成绩单还是要被看到的
    public void  report(){
        this.schoolReport.report();
    }
    //看完毕还是要签名的
    public void sign(String name){
        this.schoolReport.sign(name);
    }
}
